/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package platform;

import zorg.platform.ZrtpLogger;

/**
 *
 * @author Tomasz Nowak
 */
public class TenorLogger implements ZrtpLogger
{
	@Override
	public boolean isEnabled()
	{
		return true;
	}

	@Override
	public void log( String message )
	{
		System.err.println(message);
	}

	@Override
	public void log( String message, byte[] buffer )
	{
		System.err.println(message + " buffer: " + TenorUtils.bufferToHex(buffer));
	}

	@Override
	public void logWarning( String message )
	{
		System.err.println("WARNING: " + message);
	}

	@Override
	public void logException( String message )
	{
		System.err.println("EXCEPTION: " + message);
	}
}
